﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DTO.Models;

namespace CIT.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return RedirectToAction("Index", "Gioithieu");
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult VideoIntro()
        {
            DataRepository dr = new DataRepository();
            MEDIA[] arr = dr.MediaProvider.getMediaAll("videogioithieu").ToArray();
            MEDIA video;
            video = arr[0];
            return View(video);
        }

    }
}
